﻿using LoveNote.Shell.Views;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using TookKit.Mvvm;
using TookKit.Mvvm.Interfaces;

namespace LoveNote.Shell
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : ApplicationBase
    {
        public new static App Current => (App)System.Windows.Application.Current;
        public override Window CreateShell()
        {
            return Current.Container.GetService<ShellView>();
        }

        public override void ConfigureModules(IModuleManager moduleManager)
        {
            moduleManager.AddModule<ShellModule>();
        }

        public override string SetModuleCatalog(string moduleCatalog = "./Modules")
        {
            return "./";
        }
    }
}
